package sk.tramtatiri.core;

/**
 * 
 * Calculates BMI index
 * @author nue
 *
 */
public class Bmi {

	/** cm */
	private int height;
	/** kg */
	private int weight;
	private int age;
	private String sex;
	
	/**
	 * 
	 * @param height
	 * @param weight
	 */
	public Bmi(int height,int weight) {
		this.height = height;
		this.weight = weight;
	}
	
	
	/**
	 * 
	 * 
	 * @param height
	 * @param weight
	 * @param age
	 * @param sex
	 */
	public Bmi(int height, int weight, int age, String sex) {
		this.height = height;
		this.weight = weight;
		this.age = age;
		this.sex = sex;
	}

	public double getOrdinaryBMI() {
		double pom = (double)this.height/100;
		return (double)this.weight / (pom*pom);
	}
	
	public double getExtendedBMI() {
		throw new UnsupportedOperationException();
	}
	
}
